<?php if ($foruminfo['icon_new']): ?>
	<img src="<?php echo Gene::makeLink(Gene::fileId($foruminfo['icon_new']))?>" alt="Forum Icon" class="sideicon" />
<?php endif; ?>

<p>A forum icon is an easily recognizable image relevant to this forum.</p>

<form enctype="multipart/form-data" action="<?php echo Gene::makeLink($object) ?>/edit/icon" method="post">

<input type="hidden" name="objid" value="<?php echo $object['object_id'] ?>" />

<p><input type="file" name="forumicon" /> <input type="submit" value="Upload New Icon" /></p>

<p>You must upload an image in either GIF, JPEG or PNG format. The image will be resized and cropped to 100x100.</p>

</form>

<?php if ($foruminfo['icon_new']): ?>
	<form action="<?php echo Gene::makeLink($object) ?>/edit/icon" method="post">
	<input type="hidden" name="action" value="icon" />
	<input type="hidden" name="remove" value="1" />
	<input type="submit" value="Don't use an icon" />
	</form>
<?php endif; ?>